package com.leyou.auth.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @date: 2021/4/11 0011 18:00
 * @description:
 */
@FeignClient("auth-service")
public interface AuthClient {
    /**
     * 给其它微服务签发token
     */
    @GetMapping("/authorization")
    public String authorization(
            @RequestParam("serviceName") String serviceName,
            @RequestParam("secret") String secret
    );
}
